#!/usr/bin/python
 #-*- coding: UTF-8 -*-
i=int(input('净利润:'))
if (i>0 and i<=100000):        #净利润在0到100000之间
   r=i*0.1
elif(i>100000 and i<=200000):  #净利润在100000到200000之间
      r=100000*0.1+(i-100000)*0.075
elif(i>200000 and i<=400000):  #净利润在200000到400000之间
      r=100000*0.1+(200000-100000)*0.075+(i-200000)*0.05
elif(i>400000 and i<=600000):  #净利润在400000到600000之间
      r=100000*0.1+(200000-100000)*0.072+(400000-200000)*0.05+(i-400000)*0.03
elif(i>600000 and i<=1000000): #净利润在600000到1000000之间
      r=100000*0.1+(200000-100000)*0.075+(400000-200000)*0.05+(600000-400000)*0.03+(i-600000)*0.015
elif i>=1000000:                #净利润大于1000000时
    r=100000*0.1+(200000-100000)*0.075+(400000-200000)*0.05+(600000-400000)*0.03+(1000000-600000)*0.015+(i-1000000)*0.01
print "奖金总额："
print r
